package com.example.entity.mogodb;

import java.io.Serializable;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * @author LiYuhang
 * @version 0.1
 * @date 2024/1/30 15:11
 */
@Data
@Document(collection = "demo_entity_collection")
public class DemoEntity implements Serializable {
    @Id
    private Long id;
    @Field("title")
    private String title;
    @Field("description")
    private String description;
    @Field("by")
    private String by;
    @Field("url")
    private String url;
}
